package com.example.saiweisi.controller.receptionAdminController;

import com.example.saiweisi.common.Result;
import com.example.saiweisi.controller.request.VipInfoRequest;
import com.example.saiweisi.service.interf.IVipInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/receptionadmin/vipinfo")
@RestController
@CrossOrigin
@Slf4j
public class VipInfoController {
    @Autowired
    private IVipInfoService vipInfoService;

    @GetMapping("/page")
    public Result page(VipInfoRequest vipInfoRequest) {
        return Result.success(vipInfoService.page(vipInfoRequest));
    }
}
